public class Member {
    private String memberId;
    private String gender;
    private int age;

    public Member(String info) {
        String[] parts = info.split(" ");
        this.memberId = parts[0];
        this.gender = parts[1];
        this.age = Integer.parseInt(parts[2]);
    }

    public double consume(double amount) {
        return amount;
    }

    public double getTotalCost() {
        return 0.0;
    }

    public String getMemberAccount() {
        return String.format("%s %s %d %.1f", memberId, gender, age, getTotalCost());
    }

    public String toString() {
        return String.format("%s %s %d", memberId, gender, age);
    }
} 